#include "StdAfx.h"
#include "MyWinThread.h"

IMPLEMENT_DYNCREATE(CMyWinThread, CWinThread)

CMyWinThread::CMyWinThread(void)
{
}

CMyWinThread::~CMyWinThread(void)
{
}

BOOL CMyWinThread::InitInstance()
{
	::AFX_MANAGE_STATE(::AfxGetStaticModuleState());
	dialog.Create(IDD_MAINDIALOG);
	dialog.ShowWindow(SW_SHOW);
	dialog.UpdateWindow();
	m_pMainWnd=&dialog;
	return TRUE;
}

int CMyWinThread::ExitInstance()
{
	return CWinThread::ExitInstance();
}

BEGIN_MESSAGE_MAP(CMyWinThread, CWinThread)
END_MESSAGE_MAP()